<?php

namespace app\common\validate\Order;

//引入底层的验证器类
use think\Validate;

/**
 * 订单商品退货验证器
 */
class Apply extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'userid' => 'require', //必填
        'orderid' => 'require', //必填
        'status' => 'number|in:0,1,-1',  //给字段设置范围
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'userid.require'  => '用户信息未知',
        'orderid.require'  => '订单信息未知',
    ];
    
    /**
     * 验证场景
     */
    protected $scene = [
    ];
}
